/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseBusiness;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2022-08-28
**/
@Entity
@Data
@Table(name="BIS_PJ")
public class Pj extends BaseBusiness implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "BIS_PJ_ID")
    @ApiModelProperty(value = "主键")
    private String bisPjId;

    @Column(name = "BIS_PJ_ZHID")
    @ApiModelProperty(value = "照护ID")
    private Long bisPjZhid;

    @Column(name = "BIS_PJ_ORDER_ID")
    @ApiModelProperty(value = "订单ID")
    private String bisPjOrderId;

    @Column(name = "BIS_PJ_HLY_ID")
    @ApiModelProperty(value = "护理员ID")
    private Long bisPjHlyId;

    @Column(name = "BIS_PJ_HLY_NAME")
    @ApiModelProperty(value = "护理员名字")
    private String bisPjHlyName;

    @Column(name = "BIS_PJ_SQR_ID")
    @ApiModelProperty(value = "申请人ID")
    private String bisPjSqrId;

    @Column(name = "BIS_PJ_SQR_NAME")
    @ApiModelProperty(value = "申请人名字")
    private String bisPjSqrName;

    @Column(name = "BIS_PJ_PINGJIA_1")
    @ApiModelProperty(value = "护理时长完成度")
    private Long bisPjPingjia1;

    @Column(name = "BIS_PJ_PINGJIA_2")
    @ApiModelProperty(value = "护理项目完成度")
    private Long bisPjPingjia2;

    @Column(name = "BIS_PJ_PINGJIA_3")
    @ApiModelProperty(value = "护理操作规范度")
    private Long bisPjPingjia3;

    @Column(name = "BIS_PJ_PINGJIA_4")
    @ApiModelProperty(value = "护理人员服务态度")
    private Long bisPjPingjia4;

    @Column(name = "BIS_PJ_PINGJIA_5")
    @ApiModelProperty(value = "护理人员着装规范、准时度")
    private Long bisPjPingjia5;

    @Column(name = "BIS_PJ_PINGJIA_6")
    @ApiModelProperty(value = "护理人员是否宣传与医保政策无关内容")
    private Long bisPjPingjia6;

    @Column(name = "BIS_PJ_HL_ID")
    @ApiModelProperty(value = "护理机构ID")
    private String bisPjHlId;

    @Column(name = "BIS_PJ_HL_NAME")
    @ApiModelProperty(value = "护理机构名称")
    private String bisPjHlName;

    @Column(name = "BIS_PJ_SB_ID")
    @ApiModelProperty(value = "商保公司ID")
    private String bisPjSbId;

    @Column(name = "BIS_PJ_SB_NAME")
    @ApiModelProperty(value = "商保公司名称")
    private String bisPjSbName;

    @Column(name = "BIS_PJ_NEIRONG")
    @ApiModelProperty(value = "评价内容")
    private String bisPjNeirong;



    public void copy(Pj source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}